import request from '@/utils/request'

// 查询刑满释放人员列表
export function listEx_offender(query) {
  return request({
    url: '/report/ex_offender/list',
    method: 'get',
    params: query
  })
}

// 查询刑满释放人员详细
export function getEx_offender(id) {
  return request({
    url: '/report/ex_offender/' + id,
    method: 'get'
  })
}

// 新增刑满释放人员
export function addEx_offender(data) {
  return request({
    url: '/report/ex_offender',
    method: 'post',
    data: data
  })
}

// 修改刑满释放人员
export function updateEx_offender(data) {
  return request({
    url: '/report/ex_offender',
    method: 'put',
    data: data
  })
}

// 删除刑满释放人员
export function delEx_offender(id) {
  return request({
    url: '/report/ex_offender/' + id,
    method: 'delete'
  })
}
